package com.anpy.bill.model.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 更新日历事件DTO
 */
@Data
@ApiModel(description = "更新日历事件请求")
public class DateLineUpdateDTO {

    @NotNull(message = "事件ID不能为空")
    @ApiModelProperty(value = "事件ID", example = "1", required = true)
    private Long id;

    @ApiModelProperty(value = "事件标题", example = "家庭聚餐")
    private String title;

    @ApiModelProperty(value = "事件类型ID", example = "1")
    private Long eventTypeId;

    @ApiModelProperty(value = "事件地点", example = "家里")
    private String location;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "事件时间", example = "2025-02-27 18:00:00")
    private Date eventTime;

    @ApiModelProperty(value = "事件描述", example = "全家人一起吃饭")
    private String description;

    @ApiModelProperty(value = "图片URL列表", example = "[\"https://qiniu.example.com/photo1.jpg\", \"https://qiniu.example.com/photo2.jpg\"]")
    private List<String> photoUrls;
}